package zerous.infinite.core;

import com.badlogic.gdx.utils.*;
import com.badlogic.gdx.graphics.g2d.*;
import zerous.infinite.*;

public class Room {
	private int x, y;
	private int width;
	
	private int[][] tileData;
	private int[][] blockData;
	
	public Room(int x, int y) {
		this.x = x;
		this.y = y;
		
		tileData = new int[32][32];
		blockData = new int[32][32];
		
		width = tileData.length*Assets.TILE.getRegionWidth();
	}
	
	public void drawBlocks(Batch batch) {
		for (int i = blockData.length-1;i >= 0;--i) {
			for (int j = 0;j < blockData[i].length;++j) {
				if (blockData[i][j] == 1) {
					batch.draw(Assets.BLOCK, x*width + j*Assets.TILE.getRegionWidth(), y*width + i*Assets.TILE.getRegionHeight());
				}
			}
		}
	}
}
